package com.company.genealogy.web.vo;

import lombok.Data;
import java.util.List;

@Data
public class FamilyTreeNodeWithRelationVO {
    private Long id;
    private String name;
    private String gender;
    private Integer generation;
    private Long fatherId;
    private Long motherId;
    private Long branchId;
    private String photo;
    private String branchName;
    private String fatherName;
    private List<FamilyTreeNodeWithRelationVO> children; // 子女，需按childOrder排序
    private Integer childOrder; // 同父母下子女排序，1为长子/长女
    private String relationType; // 本人/配偶/长子/长女等
    private List<SpouseVO> spouseList; // 多配偶

    @Data
    public static class SpouseVO {
        private Long id;
        private String name;
        private String gender;
        private String photo;
        private String relationType; // spouse/concubine等
        private Integer sortOrder;   // 配偶排序
    }
} 